//
//  studentViewController.m
//  StudentAddressbook
//
//  Created by 苗钧豪 on 16/7/25.
//  Copyright © 2016年 苗钧豪. All rights reserved.
//

#import "studentViewController.h"

@interface studentViewController ()

@end

@implementation studentViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationController.navigationBar.translucent = YES;
    // Do any additional setup after loading the view.
    self.title = @"添加";
    UILabel *namefield = [[UILabel alloc]initWithFrame:CGRectMake(100, 100, 200, 30)];
    namefield.text = self.student.name;
    [self.view addSubview:namefield];
    
    UILabel *agefield = [[UILabel alloc]initWithFrame:CGRectMake(100, 200, 200, 30)];
    agefield.text = [NSString stringWithFormat:@"%ld",(long)self.student.age];
    [self.view addSubview:agefield];
    
    UILabel *genderfield = [[UILabel alloc]initWithFrame:CGRectMake(100, 300, 200, 30)];
    genderfield.text = self.student.gender;
    [self.view addSubview:genderfield];
    
    UILabel *phonefield = [[UILabel alloc]initWithFrame:CGRectMake(100, 400, 200, 30)];
    phonefield.text = self.student.phoneNumber;
    [self.view addSubview:phonefield];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
